(hack-dir-local-get-variables-functions): New hook
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Jun 2024 15:00:32 +0000 (11:00 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 9 Jun 2024 04:20:50 +0000 (00:20 -0400)
commit8253228d55b368ad7ea4d66d802059e8afff2b12
tree2a7b54f42fb4ac096ebea00390ab436fe18e4781
parent3ecc6b4f3c2b070ed2c4463e2c5d8755ccc19f1c
(hack-dir-local-get-variables-functions): New hook

Make it possible to provide more dir-local variables, such as
done by the Editorconfig package.

* lisp/files.el (hack-dir-local--get-variables): Make arg optional.
(hack-dir-local-get-variables-functions): New hook.
(hack-dir-local-variables): Run it instead of calling
`hack-dir-local--get-variables`.

* doc/lispref/variables.texi (Directory Local Variables):
Document the new hook.
doc/lispref/variables.texi
etc/NEWS
lisp/files.el